import { createNameComponent } from '../createNode';

/** 首页系列 */
const dashboard = {
  /** 首页 */
  dashboard: createNameComponent(() => import('@/views/dashboard/index.vue')),
}

/** 系统管理 */
const systemManage = {
  /** 角色 */
  role: createNameComponent(() => import('@/views/systemManage/role/index.vue')),
  /** 用户 */
  user: createNameComponent(() => import('@/views/systemManage/users/index.vue')),
}

/** 导出所有路由，供后端配置使用 */
const allRoutes = {
  dashboard,
  systemManage,
}

export default allRoutes